<div class="shop_info">
	<table>
	<tr>
		<td rowspan="3" width="150px">
		
			<img src="{$shopInfo.pic_path}" />
		</td>
		<td>
			<span class="color_b font_w_b">{$shopInfo.shop_name}</span>
			<span class="shop_status">{if $shopInfo.shop_status eq 1}(正常){else}(已冻结){/if}</span>
		</td>
	</tr>
	<tr>
		<td>
			<div>当前可用剩余积分：<span class="color_green">{$shopInfo.balance}</span></div>
		</td>
	</tr>
	<tr>
		<td>
		<input type="hidden" value="{$shopInfo.owner_card_status}" name="id" id="hidCardStatus" />
			扣减积分状态：<span class="color_green" style="margin-right:10px;">{if $shopInfo.owner_card_status eq 1}正常{else}关闭{/if}</span>
			<a href="###" onclick="showWin('changeCardStatus','changeCardStatusOp')" class="g_a">
		     	<span class="g_b">
		        	<span class="g_c">&nbsp;</span>
			    	<span class="g_d">{if $shopInfo.owner_card_status eq 1}关 闭{else}开 启{/if}</span>
			    </span>
			</a>
		</td>
	</tr>
	</table>
</div>

<div class="pay_search">
	<form action="" method="get" name="searchForm" id="searchForm">
	<table>
		<tr>
			<td height="30px" class="font12">
			日期：<input type="text" id="txt_s_time" class="input_small" value="{$s_time}" name="txt_s_time" readonly="readonly" onClick="WdatePicker()" />到
			<input type="text" id="txt_e_time" class="input_small" value="{$e_time}" name="txt_e_time"  readonly="readonly" onClick="WdatePicker()" />
			&nbsp;<select class="sel_common" name="sel_cost_type" id="sel_cost_type">
				<option value="">全部类型</option>
				<option {if $type eq 1}selected="selected"{/if} value="1">增加积分</option>
				<option {if $type eq 2}selected="selected"{/if} value="2">扣减积分</option>
				<option {if $type eq 3}selected="selected"{/if} value="3">撤销积分</option>
			</select>&nbsp;
			<input type="hidden" value="{$shopID}" name="id" id="hidShopID" />&nbsp;
			<a href="###" onclick="submitForm('searchForm');" class="g_a">
		     	<span class="g_b">
		        	<span class="g_c">&nbsp;</span>
			    	<span class="g_d">查 询</span>
			    </span>
			</a>
			</td>
		</tr>
	</table>
	</form>
</div>
<table class="tlist" style="margin-top:10px;">
	<tr>
		<th>交易时间</th>
		<th>操作类别</th>
		<th>积分发生额</th>
		<th>赠送积分/折扣率</th>
		<th>剩余积分</th>
	</tr>
	{foreach from=$data item=v}
	<tr>
		<td>{$v.cost_time}</td>
		<td>{if $v.cost_type eq 1}增加积分{elseif $v.cost_type eq 2}扣减积分{else}撤销交易{/if}</td>
		<td class="color_ry">{$v.cost_money_t}</td>
		<td>{$v.discount_num}</td>
		<td class="color_green">{$v.cost_shop_after_money}</td>
	</tr>
	{/foreach}
	{if $pageStr neq ""}
	<tr><td colspan="5">{$pageStr}</td></tr>
	{/if}
</table>
